package com.jk.admin.service;

import com.jk.admin.dao.BannerDao;
import com.jk.admin.entity.BannerEntity;
import com.jk.admin.entity.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BannerService {

    @Autowired
    private BannerDao bannerDao;

    public List<BannerEntity> getBanner() {

        return bannerDao.getBanner();
    }

    public BannerEntity getById(Integer id) {
        return bannerDao.getById(id);
    }

    public void updBan(BannerEntity bannerEntity) {
        bannerDao.updBan(bannerEntity);
    }
}
